package com.yonyou.cyxdms.basedata.service.dto.vehiclemodel;


import com.yonyou.cyx.framework.bean.dto.base.BaseDTO;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 车辆颜色
 *
 * @author DuPengXin
 * @date 2016年8月11日
 */

public class GeneralCarColorDTO extends BaseDTO {

    private Long colorId;
    @NotBlank(message = "经销商代码不能为空")
    private String ownerCode;

    @NotNull
    private Integer colorType;

    @NotNull
    private String colorCode;

    @NotNull
    private String colorName;

    private Integer isValid;

    @ApiModelProperty(value = "appId", hidden = true)
    @NotBlank
    private String appId;

    //数据来源
    private String sourceId;

    // 是否删除
    private Integer isDelete;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public Long getColorId() {
        return colorId;
    }

    public void setColorId(Long colorId) {
        this.colorId = colorId;
    }

    public String getOwnerCode() {
        return ownerCode;
    }

    public void setOwnerCode(String ownerCode) {
        this.ownerCode = ownerCode;
    }

    public String getColorCode() {
        return colorCode;
    }

    public Integer getColorType() {
        return colorType;
    }

    public void setColorType(Integer colorType) {
        this.colorType = colorType;
    }

    public void setColorCode(String colorCode) {
        this.colorCode = colorCode;
    }

    public String getColorName() {
        return colorName;
    }

    public void setColorName(String colorName) {
        this.colorName = colorName;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "GeneralCarColorDTO{" +
                "colorId=" + colorId +
                ", ownerCode='" + ownerCode + '\'' +
                ", colorType=" + colorType +
                ", colorCode='" + colorCode + '\'' +
                ", colorName='" + colorName + '\'' +
                ", isValid=" + isValid +
                ", appId='" + appId + '\'' +
                ", sourceId='" + sourceId + '\'' +
                ", isDelete=" + isDelete +
                '}';
    }
}
